﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FFB RID: 4091
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournEnablePermanentTalentScRsp : IMessage<RogueTournEnablePermanentTalentScRsp>, IMessage, IEquatable<RogueTournEnablePermanentTalentScRsp>, IDeepCloneable<RogueTournEnablePermanentTalentScRsp>, IBufferMessage
	{
		// Token: 0x170033C1 RID: 13249
		// (get) Token: 0x0600B702 RID: 46850 RVA: 0x001EDFC7 File Offset: 0x001EC1C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournEnablePermanentTalentScRsp> Parser
		{
			get
			{
				return RogueTournEnablePermanentTalentScRsp._parser;
			}
		}

		// Token: 0x170033C2 RID: 13250
		// (get) Token: 0x0600B703 RID: 46851 RVA: 0x001EDFCE File Offset: 0x001EC1CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournEnablePermanentTalentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170033C3 RID: 13251
		// (get) Token: 0x0600B704 RID: 46852 RVA: 0x001EDFE0 File Offset: 0x001EC1E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournEnablePermanentTalentScRsp.Descriptor;
			}
		}

		// Token: 0x0600B705 RID: 46853 RVA: 0x001EDFE7 File Offset: 0x001EC1E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnablePermanentTalentScRsp()
		{
		}

		// Token: 0x0600B706 RID: 46854 RVA: 0x001EDFF0 File Offset: 0x001EC1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnablePermanentTalentScRsp(RogueTournEnablePermanentTalentScRsp other) : this()
		{
			this.permanentInfo_ = ((other.permanentInfo_ != null) ? other.permanentInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B707 RID: 46855 RVA: 0x001EE03C File Offset: 0x001EC23C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnablePermanentTalentScRsp Clone()
		{
			return new RogueTournEnablePermanentTalentScRsp(this);
		}

		// Token: 0x170033C4 RID: 13252
		// (get) Token: 0x0600B708 RID: 46856 RVA: 0x001EE044 File Offset: 0x001EC244
		// (set) Token: 0x0600B709 RID: 46857 RVA: 0x001EE04C File Offset: 0x001EC24C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo PermanentInfo
		{
			get
			{
				return this.permanentInfo_;
			}
			set
			{
				this.permanentInfo_ = value;
			}
		}

		// Token: 0x170033C5 RID: 13253
		// (get) Token: 0x0600B70A RID: 46858 RVA: 0x001EE055 File Offset: 0x001EC255
		// (set) Token: 0x0600B70B RID: 46859 RVA: 0x001EE05D File Offset: 0x001EC25D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600B70C RID: 46860 RVA: 0x001EE066 File Offset: 0x001EC266
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournEnablePermanentTalentScRsp);
		}

		// Token: 0x0600B70D RID: 46861 RVA: 0x001EE074 File Offset: 0x001EC274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournEnablePermanentTalentScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.PermanentInfo, other.PermanentInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B70E RID: 46862 RVA: 0x001EE0C4 File Offset: 0x001EC2C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.permanentInfo_ != null)
			{
				num ^= this.PermanentInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B70F RID: 46863 RVA: 0x001EE119 File Offset: 0x001EC319
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B710 RID: 46864 RVA: 0x001EE121 File Offset: 0x001EC321
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B711 RID: 46865 RVA: 0x001EE12C File Offset: 0x001EC32C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.permanentInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.PermanentInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B712 RID: 46866 RVA: 0x001EE188 File Offset: 0x001EC388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.permanentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PermanentInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B713 RID: 46867 RVA: 0x001EE1E0 File Offset: 0x001EC3E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournEnablePermanentTalentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.permanentInfo_ != null)
			{
				if (this.permanentInfo_ == null)
				{
					this.PermanentInfo = new RogueTournPermanentTalentInfo();
				}
				this.PermanentInfo.MergeFrom(other.PermanentInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B714 RID: 46868 RVA: 0x001EE248 File Offset: 0x001EC448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B715 RID: 46869 RVA: 0x001EE254 File Offset: 0x001EC454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 50U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.permanentInfo_ == null)
						{
							this.PermanentInfo = new RogueTournPermanentTalentInfo();
						}
						input.ReadMessage(this.PermanentInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040049ED RID: 18925
		private static readonly MessageParser<RogueTournEnablePermanentTalentScRsp> _parser = new MessageParser<RogueTournEnablePermanentTalentScRsp>(() => new RogueTournEnablePermanentTalentScRsp());

		// Token: 0x040049EE RID: 18926
		private UnknownFieldSet _unknownFields;

		// Token: 0x040049EF RID: 18927
		public const int PermanentInfoFieldNumber = 6;

		// Token: 0x040049F0 RID: 18928
		private RogueTournPermanentTalentInfo permanentInfo_;

		// Token: 0x040049F1 RID: 18929
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040049F2 RID: 18930
		private uint retcode_;
	}
}
